package com.yipinhouse.signing.client;

import com.yipinhouse.common.result.Result;
import com.yipinhouse.signing.client.param.DemoParam;
import com.yipinhouse.signing.client.param.UploadContractAttachmentParam;
import com.yipinhouse.signing.client.param.UploadContractParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.io.IOException;

/**
* name是项目名，contextId是client的名字
*/
@FeignClient(contextId = "contractManageClient",name="signing",path="contract")
public interface ContractManageClient {

    /**
     * 上传合同信息
     * @param param
     * @return
     */
    @PostMapping("/uploadContract")
    Result uploadContract(@RequestBody UploadContractParam param);

    /**
     * 上传合同附件
     * @param param
     * @return
     * @throws Exception
     */
    @PostMapping("/uploadContractAttachment")
    Result uploadContractAttachment(UploadContractAttachmentParam param) throws Exception;

}
